package com.xydtech.system.domain;

import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 微信小程序配置对象 sys_wechat_applet
 *
 * @author JHON
 * @date 2021-10-12
 */
public class SysWechatApplet extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 小程序类型            1-线上快贷            2-电子名片            3-裂变营销 */
    @Excel(name = "小程序类型            1-线上快贷            2-电子名片            3-裂变营销")
    private String appletType;

    /** 小程序名称 */
    @Excel(name = "小程序名称")
    private String appletName;

    /** 小程序ID */
    @Excel(name = "小程序ID")
    private String appid;

    /** 小程序密钥 */
    @Excel(name = "小程序密钥")
    private String secret;

    /** 获取openid的Url */
    @Excel(name = "获取openid的Url")
    private String getOpenIdUrl;
    /** 前端重定向地址 */
    @Excel(name = "前端重定向地址")
    private String redirectUri;
    /** 归属法人 */
    @Excel(name = "归属法人")
    private Long deptId;

    /** 子系统编号(调用数据平台需配置) */
    @Excel(name = "子系统编号(调用数据平台需配置)")
    private String subSysCode;

    /** 子系统密钥(调用数据平台需配置) */
    @Excel(name = "子系统密钥(调用数据平台需配置)")
    private String subSysToken;

    /** 小程序版本            developer-开发版            trial-体验版            formal-正式版 */
    @Excel(name = "小程序版本            developer-开发版            trial-体验版            formal-正式版")
    private String versionDesc;

    /** 业务通知模板编号 */
    @Excel(name = "业务通知模板编号")
    private String templateId;

    /** 业务通知模板 */
    @Excel(name = "业务通知模板")
    private String template;

    /** 腾讯地图key */
    @Excel(name = "腾讯地图key")
    private String tecentMapKey;
    /** 短信签名 */
    @Excel(name = "短信签名")
    private String signature;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setAppletType(String appletType) {
        this.appletType = appletType;
    }

    public String getAppletType() {
        return appletType;
    }

    public void setAppletName(String appletName) {
        this.appletName = appletName;
    }

    public String getAppletName() {
        return appletName;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getAppid() {
        return appid;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getSecret() {
        return secret;
    }

    public void setGetOpenIdUrl(String getOpenIdUrl) {
        this.getOpenIdUrl = getOpenIdUrl;
    }

    public String getGetOpenIdUrl() {
        return getOpenIdUrl;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setSubSysCode(String subSysCode) {
        this.subSysCode = subSysCode;
    }

    public String getSubSysCode() {
        return subSysCode;
    }

    public void setSubSysToken(String subSysToken) {
        this.subSysToken = subSysToken;
    }

    public String getSubSysToken() {
        return subSysToken;
    }

    public void setVersionDesc(String versionDesc) {
        this.versionDesc = versionDesc;
    }

    public String getVersionDesc() {
        return versionDesc;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getTemplateId() {
        return templateId;
    }

    public String getRedirectUri() {
        return redirectUri;
    }

    public void setRedirectUri(String redirectUri) {
        this.redirectUri = redirectUri;
    }

    public String getTecentMapKey() {
        return tecentMapKey;
    }

    public void setTecentMapKey(String tecentMapKey) {
        this.tecentMapKey = tecentMapKey;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("appletType", getAppletType())
                .append("appletName", getAppletName())
                .append("appid", getAppid())
                .append("secret", getSecret())
                .append("getOpenIdUrl", getGetOpenIdUrl())
                .append("redirectUri", getRedirectUri())
                .append("deptId", getDeptId())
                .append("subSysCode", getSubSysCode())
                .append("subSysToken", getSubSysToken())
                .append("versionDesc", getVersionDesc())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("templateId", getTemplateId())
                .append("template", getTemplate())
                .toString();
    }
}
